defmodule Mines.Mixfile do
  use Mix.Project

  def project do
    [
      app: :mines,
      version: "0.0.1",
      elixir: "~> 1.4",
      build_embedded: Mix.env() == :prod,
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      escript: escript()
    ]
  end

  # Configuration for the OTP application
  #
  # Type "mix help compile.app" for more information
  def application do
    [applications: [:logger]]
  end

  defp escript do
    [main_module: Mines.Escript, emu_args: "-noinput -elixir ansi_enabled true"]
  end

  defp deps do
    [
      {:credo, "~> 0.5", only: [:dev, :test]}
    ]
  end
end
